package com.zhang.learnnacos.app2;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @author zhanghaolian
 * @date 2021/5/9 15:18
 */
@SpringBootApplication
@EnableDiscoveryClient
//@EnableFeignClients(basePackages = {"com.zhang.springcloud.api.feignservice"})
public class LearnNcosApp2 {

    public static void main(String[] args) {
        SpringApplication.run(LearnNcosApp2.class, args);
    }

    @Bean
    public RestTemplate restTemplate(){

        return new RestTemplate();
    }
}
